package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.push.ClientPushRecord;
import com.yanqu.road.entity.servercenter.ClientPushContent;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

/**
 * @Author wpj
 * @Date 2021/4/10
 */
public class UserPushMsgBusiness {
    public static Map<Long, Map<Integer, ClientPushRecord>> getClientPushRecordMap() {
        return DaoHelper.getUserPushMsgDaoImpl().getClientPushRecord();
    }

    public static boolean addClientPushRecord(ClientPushRecord clientPushRecord) {
        return DaoHelper.getUserPushMsgDaoImpl().add(clientPushRecord);
    }

    public static boolean updateClientPushRecord(ClientPushRecord clientPushRecord) {
        return DaoHelper.getUserPushMsgDaoImpl().update(clientPushRecord);
    }

    public static Map<Integer, ClientPushContent> getClientPushContentMap() {
        return DaoHelper.getUserPushMsgDaoImpl().getClientPushContentMap();
    }
}
